<?php

//验证用户登陆状态

if (empty($_SESSION['username'])) {
    die("<script>window.location.href='text1.php';</script>");
}
